3.76 \(\int x^m \cos (a+b x^n) \, dx\)

Optimal. Leaf size=105 \[ -\frac {e^{i a} x^{m+1} \left (-i b x^n\right )^{-\frac {m+1}{n}} \Gamma \left (\frac {m+1}{n},-i b x^n\right )}{2 n}-\frac {e^{-i a} x^{m+1} \left (i b x^n\right )^{-\frac {m+1}{n}} \Gamma \left (\frac {m+1}{n},i b x^n\right )}{2 n} \]

[Out]

-1/2*exp(I*a)*x^(1+m)*GAMMA((1+m)/n,-I*b*x^n)/n/((-I*b*x^n)^((1+m)/n))-1/2*x^(1+m)*GAMMA((1+m)/n,I*b*x^n)/exp(
I*a)/n/((I*b*x^n)^((1+m)/n))

________________________________________________________________________________________

Rubi [A]  time = 0.07, antiderivative size = 105, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {3424, 2218} \[ -\frac {e^{i a} x^{m+1} \left (-i b x^n\right )^{-\frac {m+1}{n}} \text {Gamma}\left (\frac {m+1}{n},-i b x^n\right )}{2 n}-\frac {e^{-i a} x^{m+1} \left (i b x^n\right )^{-\frac {m+1}{n}} \text {Gamma}\left (\frac {m+1}{n},i b x^n\right )}{2 n} \]

Antiderivative was successfully verified.

[In]

Int[x^m*Cos[a + b*x^n],x]

[Out]

-(E^(I*a)*x^(1 + m)*Gamma[(1 + m)/n, (-I)*b*x^n])/(2*n*((-I)*b*x^n)^((1 + m)/n)) - (x^(1 + m)*Gamma[(1 + m)/n,
 I*b*x^n])/(2*E^(I*a)*n*(I*b*x^n)^((1 + m)/n))

Rule 2218

Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^(n_))*((e_.) + (f_.)*(x_))^(m_.), x_Symbol] :> -Simp[(F^a*(e + f*
x)^(m + 1)*Gamma[(m + 1)/n, -(b*(c + d*x)^n*Log[F])])/(f*n*(-(b*(c + d*x)^n*Log[F]))^((m + 1)/n)), x] /; FreeQ
[{F, a, b, c, d, e, f, m, n}, x] && EqQ[d*e - c*f, 0]

Rule 3424

Int[Cos[(c_.) + (d_.)*(x_)^(n_)]*((e_.)*(x_))^(m_.), x_Symbol] :> Dist[1/2, Int[(e*x)^m*E^(-(c*I) - d*I*x^n),
x], x] + Dist[1/2, Int[(e*x)^m*E^(c*I + d*I*x^n), x], x] /; FreeQ[{c, d, e, m, n}, x]

Rubi steps

\begin {align*} \int x^m \cos \left (a+b x^n\right ) \, dx &=\frac {1}{2} \int e^{-i a-i b x^n} x^m \, dx+\frac {1}{2} \int e^{i a+i b x^n} x^m \, dx\\ &=-\frac {e^{i a} x^{1+m} \left (-i b x^n\right )^{-\frac {1+m}{n}} \Gamma \left (\frac {1+m}{n},-i b x^n\right )}{2 n}-\frac {e^{-i a} x^{1+m} \left (i b x^n\right )^{-\frac {1+m}{n}} \Gamma \left (\frac {1+m}{n},i b x^n\right )}{2 n}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.20, size = 115, normalized size = 1.10 \[ -\frac {x^{m+1} \left (b^2 x^{2 n}\right )^{-\frac {m+1}{n}} \left ((\cos (a)-i \sin (a)) \left (-i b x^n\right )^{\frac {m+1}{n}} \Gamma \left (\frac {m+1}{n},i b x^n\right )+(\cos (a)+i \sin (a)) \left (i b x^n\right )^{\frac {m+1}{n}} \Gamma \left (\frac {m+1}{n},-i b x^n\right )\right )}{2 n} \]

Antiderivative was successfully verified.

[In]

Integrate[x^m*Cos[a + b*x^n],x]

[Out]

-1/2*(x^(1 + m)*(((-I)*b*x^n)^((1 + m)/n)*Gamma[(1 + m)/n, I*b*x^n]*(Cos[a] - I*Sin[a]) + (I*b*x^n)^((1 + m)/n
)*Gamma[(1 + m)/n, (-I)*b*x^n]*(Cos[a] + I*Sin[a])))/(n*(b^2*x^(2*n))^((1 + m)/n))

________________________________________________________________________________________

fricas [F]  time = 0.99, size = 0, normalized size = 0.00 \[ {\rm integral}\left (x^{m} \cos \left (b x^{n} + a\right ), x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^m*cos(a+b*x^n),x, algorithm="fricas")

[Out]

integral(x^m*cos(b*x^n + a), x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int x^{m} \cos \left (b x^{n} + a\right )\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^m*cos(a+b*x^n),x, algorithm="giac")

[Out]

integrate(x^m*cos(b*x^n + a), x)

________________________________________________________________________________________

maple [C]  time = 0.16, size = 111, normalized size = 1.06 \[ \frac {x^{1+m} \hypergeom \left (\left [\frac {m}{2 n}+\frac {1}{2 n}\right ], \left [\frac {1}{2}, 1+\frac {m}{2 n}+\frac {1}{2 n}\right ], -\frac {x^{2 n} b^{2}}{4}\right ) \cos \relax (a )}{1+m}-\frac {b \,x^{1+m +n} \hypergeom \left (\left [\frac {1}{2}+\frac {m}{2 n}+\frac {1}{2 n}\right ], \left [\frac {3}{2}, \frac {3}{2}+\frac {m}{2 n}+\frac {1}{2 n}\right ], -\frac {x^{2 n} b^{2}}{4}\right ) \sin \relax (a )}{1+m +n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^m*cos(a+b*x^n),x)

[Out]

1/(1+m)*x^(1+m)*hypergeom([1/2/n*m+1/2/n],[1/2,1+1/2/n*m+1/2/n],-1/4*x^(2*n)*b^2)*cos(a)-b/(1+m+n)*x^(1+m+n)*h
ypergeom([1/2+1/2/n*m+1/2/n],[3/2,3/2+1/2/n*m+1/2/n],-1/4*x^(2*n)*b^2)*sin(a)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int x^{m} \cos \left (b x^{n} + a\right )\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^m*cos(a+b*x^n),x, algorithm="maxima")

[Out]

integrate(x^m*cos(b*x^n + a), x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.01 \[ \int x^m\,\cos \left (a+b\,x^n\right ) \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^m*cos(a + b*x^n),x)

[Out]

int(x^m*cos(a + b*x^n), x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int x^{m} \cos {\left (a + b x^{n} \right )}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**m*cos(a+b*x**n),x)

[Out]

Integral(x**m*cos(a + b*x**n), x)

________________________________________________________________________________________